package com.jijuxie.agent.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jijuxie.common.core.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("agent_deal_record")
@EqualsAndHashCode(callSuper = true)
public class AgentDealRecord extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long dealId;

    /**
     * 房源ID
     */
    private Long houseId;

    /**
     * 经纪人ID
     */
    private Long agentId;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 成交价格
     */
    private BigDecimal dealPrice;

    /**
     * 成交时间
     */
    private LocalDateTime dealTime;

    /**
     * 佣金
     */
    private BigDecimal commission;

    /**
     * 状态（0待确认 1已确认）
     */
    private String status;

    /**
     * 删除标志（0存在 1删除）
     */
    @TableLogic
    private String delFlag;
}
